<template>
  <div class="custom-title" >
    <h2>{{ title }}</h2>
    <slot></slot>
  </div>
</template>

<script setup>
  defineProps({
    title: {
      type: String,
      required: true,
    },
  });
</script>

<style scoped>
  .custom-title h2 {
    letter-spacing: 2px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 400;
    text-shadow:
      0 5px 20px hsla(0, 0%, 100%, 0.4),
      0 -5px 20px hsla(0, 0%, 100%, 0.4);
    background: url('@/assets/img/oneTitle.png') no-repeat 50%;
    text-align: center;
    cursor: pointer;
  }
</style>
